package spring.aop.case1;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.BlockJUnit4ClassRunner;
import spring.UnitTestBase;
import spring.aop.case1.service.InvokeService;


@RunWith(BlockJUnit4ClassRunner.class)
public class TestAOPSchemaAdvisors extends UnitTestBase {

    public TestAOPSchemaAdvisors() {
        super("classpath:spring-aop-schema-advisors.xml");
    }

    @Test
    public void testSave() {
        InvokeService service = getBean("invokeService");
        service.invoke();
        System.out.println();
        try {
            service.invokeException();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
